﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
using System.Xml.Serialization;

namespace ContentPipelineExtension1
{
    [ContentTypeWriter]
    class PrismWriter : ContentTypeWriter<PrismDefinition>
    {
        protected override void Write(ContentWriter output, PrismDefinition value)
        {
            var ser = new XmlSerializer(typeof(PrismDefinition));

            ser.Serialize(output.BaseStream, value);
        }

        public override string GetRuntimeReader(Microsoft.Xna.Framework.TargetPlatform targetPlatform)
        {
            return "PrismDefinitionImporter";
        }
    }
}
